Integrand size = 14, antiderivative size = 57 \[ \int \frac {\cos ^2\left (a+b x^2\right )}{x^3} \, dx=-\frac {1}{4 x^2}-\frac {\cos \left (2 \left (a+b x^2\right )\right )}{4 x^2}-\frac {1}{2} b \operatorname {CosIntegral}\left (2 b x^2\right ) \sin (2 a)-\frac {1}{2} b \cos (2 a) \text {Si}\left (2 b x^2\right ) \]
[Out]
Time = 0.24 (sec) , antiderivative size = 57, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.429, Rules used = {3485, 3461, 3378, 3384, 3380, 3383} \[ \int \frac {\cos ^2\left (a+b x^2\right )}{x^3} \, dx=-\frac {1}{2} b \sin (2 a) \operatorname {CosIntegral}\left (2 b x^2\right )-\frac {1}{2} b \cos (2 a) \text {Si}\left (2 b x^2\right )-\frac {\cos \left (2 \left (a+b x^2\right )\right )}{4 x^2}-\frac {1}{4 x^2} \]
[In]
[Out]
Rule 3378
Rule 3380
Rule 3383
Rule 3384
Rule 3461
Rule 3485
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {1}{2 x^3}+\frac {\cos \left (2 a+2 b x^2\right )}{2 x^3}\right ) \, dx \\ & = -\frac {1}{4 x^2}+\frac {1}{2} \int \frac {\cos \left (2 a+2 b x^2\right )}{x^3} \, dx \\ & = -\frac {1}{4 x^2}+\frac {1}{4} \text {Subst}\left (\int \frac {\cos (2 a+2 b x)}{x^2} \, dx,x,x^2\right ) \\ & = -\frac {1}{4 x^2}-\frac {\cos \left (2 \left (a+b x^2\right )\right )}{4 x^2}-\frac {1}{2} b \text {Subst}\left (\int \frac {\sin (2 a+2 b x)}{x} \, dx,x,x^2\right ) \\ & = -\frac {1}{4 x^2}-\frac {\cos \left (2 \left (a+b x^2\right )\right )}{4 x^2}-\frac {1}{2} (b \cos (2 a)) \text {Subst}\left (\int \frac {\sin (2 b x)}{x} \, dx,x,x^2\right )-\frac {1}{2} (b \sin (2 a)) \text {Subst}\left (\int \frac {\cos (2 b x)}{x} \, dx,x,x^2\right ) \\ & = -\frac {1}{4 x^2}-\frac {\cos \left (2 \left (a+b x^2\right )\right )}{4 x^2}-\frac {1}{2} b \operatorname {CosIntegral}\left (2 b x^2\right ) \sin (2 a)-\frac {1}{2} b \cos (2 a) \text {Si}\left (2 b x^2\right ) \\ \end{align*}
Time = 0.13 (sec) , antiderivative size = 50, normalized size of antiderivative = 0.88 \[ \int \frac {\cos ^2\left (a+b x^2\right )}{x^3} \, dx=-\frac {\cos ^2\left (a+b x^2\right )+b x^2 \operatorname {CosIntegral}\left (2 b x^2\right ) \sin (2 a)+b x^2 \cos (2 a) \text {Si}\left (2 b x^2\right )}{2 x^2} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.64 (sec) , antiderivative size = 98, normalized size of antiderivative = 1.72
method | result | size |
risch | \(\frac {i {\mathrm e}^{-2 i a} \operatorname {Ei}_{1}\left (-2 i b \,x^{2}\right ) b \,x^{2}+{\mathrm e}^{-2 i a} \pi \,\operatorname {csgn}\left (b \,x^{2}\right ) b \,x^{2}-i {\mathrm e}^{2 i a} b \,\operatorname {Ei}_{1}\left (-2 i b \,x^{2}\right ) x^{2}-2 \,{\mathrm e}^{-2 i a} \operatorname {Si}\left (2 b \,x^{2}\right ) b \,x^{2}-\cos \left (2 b \,x^{2}+2 a \right )-1}{4 x^{2}}\) | \(98\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 48, normalized size of antiderivative = 0.84 \[ \int \frac {\cos ^2\left (a+b x^2\right )}{x^3} \, dx=-\frac {b x^{2} \operatorname {Ci}\left (2 \, b x^{2}\right ) \sin \left (2 \, a\right ) + b x^{2} \cos \left (2 \, a\right ) \operatorname {Si}\left (2 \, b x^{2}\right ) + \cos \left (b x^{2} + a\right )^{2}}{2 \, x^{2}} \]
[In]
[Out]
\[ \int \frac {\cos ^2\left (a+b x^2\right )}{x^3} \, dx=\int \frac {\cos ^{2}{\left (a + b x^{2} \right )}}{x^{3}}\, dx \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.36 (sec) , antiderivative size = 61, normalized size of antiderivative = 1.07 \[ \int \frac {\cos ^2\left (a+b x^2\right )}{x^3} \, dx=-\frac {{\left ({\left (i \, \Gamma \left (-1, 2 i \, b x^{2}\right ) - i \, \Gamma \left (-1, -2 i \, b x^{2}\right )\right )} \cos \left (2 \, a\right ) + {\left (\Gamma \left (-1, 2 i \, b x^{2}\right ) + \Gamma \left (-1, -2 i \, b x^{2}\right )\right )} \sin \left (2 \, a\right )\right )} b x^{2} + 1}{4 \, x^{2}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 107 vs. \(2 (50) = 100\).
Time = 0.31 (sec) , antiderivative size = 107, normalized size of antiderivative = 1.88 \[ \int \frac {\cos ^2\left (a+b x^2\right )}{x^3} \, dx=-\frac {2 \, {\left (b x^{2} + a\right )} b^{2} \operatorname {Ci}\left (2 \, b x^{2}\right ) \sin \left (2 \, a\right ) - 2 \, a b^{2} \operatorname {Ci}\left (2 \, b x^{2}\right ) \sin \left (2 \, a\right ) - 2 \, {\left (b x^{2} + a\right )} b^{2} \cos \left (2 \, a\right ) \operatorname {Si}\left (-2 \, b x^{2}\right ) + 2 \, a b^{2} \cos \left (2 \, a\right ) \operatorname {Si}\left (-2 \, b x^{2}\right ) + b^{2} \cos \left (2 \, b x^{2} + 2 \, a\right ) + b^{2}}{4 \, b^{2} x^{2}} \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^2\left (a+b x^2\right )}{x^3} \, dx=\int \frac {{\cos \left (b\,x^2+a\right )}^2}{x^3} \,d x \]
[In]
[Out]